package com.ugoodtech.mdcc.core.repository;

        /* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
         * Unauthorized copying of this file, via any medium is strictly prohibited.
         * Proprietary and confidential.
         * Written by Stone Shaw.
         */

import com.ugoodtech.mdcc.core.domain.ModuleAuthority;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

public interface ModuleAuthorityRepository extends CrudRepository<ModuleAuthority, Long>, QueryDslPredicateExecutor<ModuleAuthority> {

    @Query("from ModuleAuthority where name=:name")
    ModuleAuthority findByName(@Param("name") String name);

}
